//
//  ViewController.m
//  DNFBox
//
//  Created by lanou3g on 16/5/5.
//  Copyright © 2016年 毛毛. All rights reserved.
//

#import "ViewController.h"
#import "GXSlideSegmentController.h"

#import "MMRecommendController.h"
#import "ZXLEntertainmentController.h"

#import "SJTVideoViewController.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationController.interactivePopGestureRecognizer.enabled = NO;
    
    NSMutableArray * vcs = [NSMutableArray array];
    MMRecommendController * recommedVC = [[MMRecommendController alloc]init];
    recommedVC.title = @"推荐";
    
    
    ZXLEntertainmentController * enterVC = [[ZXLEntertainmentController alloc]init];
    enterVC.title = @"娱乐";
    
    SJTVideoViewController * videoVC = [[SJTVideoViewController alloc]init];
    videoVC.title  =@"视频";
    videoVC.view.backgroundColor =[UIColor whiteColor];
    
    [vcs addObject:recommedVC];
    [vcs addObject:videoVC];
    [vcs addObject:enterVC];
    
    
    GXSlideSegmentController *slideSegmentController = [[GXSlideSegmentController alloc] initWithViewControllers:vcs];
    
    
    slideSegmentController.title = @"GXSlideSegmentController";
    slideSegmentController.indicatorInsets = UIEdgeInsetsMake(0, 8, 0, 8);
    slideSegmentController.indicator.backgroundColor = [UIColor redColor];
    slideSegmentController.indicator.layer.cornerRadius = slideSegmentController.indicator.frame.size.height/2;
    
    [self.navigationController pushViewController:slideSegmentController animated:YES];
    
    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
